package com.hzhc.enumBean;

/*
 * 项目模块
 * (表:version_info)
 * */
public enum Modular {
    /**
     * PC
     */
    PC("PC",1),
    /**
     * IPAD
     */
    IPAD("IPAD",2),
    /**
     * WXAPP
     */
    WXAPP("WXAPP",3);

    private String name;
    private Integer value;

    public static Modular valueOf(Integer value) {
        switch (value) {
            case 1:
                return PC;
            case 2:
                return IPAD;
            case 3:
                return WXAPP;
            default:
                return null;
        }
    }

    private Modular(String name, Integer value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public Integer getValue() {
        return value;
    }
}
